class Point<Type> {
    public x: Type
    public Y: Type

    constructor(x: Type, y: Type) {
        this.x = x
        this.Y = y
    }
}

const p1: Point<string> = new Point<string>("10", "20")
console.log(p1)
const p2:Point<number>=new Point<number>(10,20)
console.log(p2)